<?php
include 'database/connect.php';

$query2 = mysql_query("SELECT * from user");
$ilosc = mysql_num_rows($query2);
if ($ilosc==0){
	echo 'nie wykrylem rekordow';
}
else { 
//echo $ilosc; 
$query =  mysql_query("Select max(id)+1 from user");
$row = mysql_fetch_row($query);
$id = $row[0];
//echo $id;
}
?>